package com.jiyun.student.controller;

import com.jiyun.pojo.result.ResultVo;
import com.jiyun.pojo.student.Student;
import com.jiyun.pojo.student.StudentDto;
import com.jiyun.pojo.user.User;
import com.jiyun.student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 文件名:StudentController
 * 创建者: 闫俊涛
 * 创建时间:2022/6/26 13:34
 * 描述:这是一个实例
 */
@RestController
@RequestMapping("student")
public class StudentController {

    @Autowired
    // 我的统计
    private StudentService studentService;
    @RequestMapping("ListById")
    public List<Student> ListById(Integer id){
        return  studentService.selectBySId(id);
    }




    /**
     *
     * @param id
     * @param status
     * @return
     */

    // 学生收藏


    @PostMapping("mysc")
    public ResultVo  mysc (Integer id ,Integer status){
        return  studentService.mysc(id,status);
    }

}
